1
bash
This configures Bash shell options for safer scripting by preventing file overwriting, exiting on errors, revealing pipeline failures, and exposing unset variables.
set -o noclobber # Avoid overlay files (echo "hi" > foo) set -o errexit # Used to exit upon error, avoiding cascading errors set -o pipefail # Unveils hidden failures set -o nounset # Exposes unset variables
bash internalshell configuration and customizationstrict mode